//
//  Date+Extension.swift
//  Mall-swift
//
//  Created by Bob on 2020/11/8.
//  Copyright © 2020 Bob. All rights reserved.
//

import UIKit

extension NSDate {
    public static func getDateYYMMddStringNoLineFromCurrentDate() -> String {
        let dateFormatter = DateFormatter()
        dateFormatter.locale = NSLocale.init(localeIdentifier: "zh_CN") as Locale
        dateFormatter.dateFormat = "yyyyMMdd"
        let destDateString = dateFormatter.string(from: Date())
        
        return destDateString
    }
    
}
